AM_CPPFLAGS =  \
	-I$(top_srcdir)/../nhd2-exp/src \
	-I$(top_srcdir)/../nhd2-exp/src/zapit/include/zapit \
	-I$(top_srcdir)/../nhd2-exp/lib \
	-I$(top_srcdir)/../nhd2-exp/lib/connection \
	-I$(top_srcdir)/../nhd2-exp/lib/libeventserver \
	-I$(top_srcdir)/../nhd2-exp/lib/libconfigfile \
	-I$(top_srcdir)/../nhd2-exp/lib/libnet \
	-I$(top_srcdir)/../nhd2-exp/lib/libxmltree \
	-I$(top_srcdir)/../nhd2-exp/lib/libmd5sum \
	-I$(top_srcdir)/../nhd2-exp/lib/libdvbapi \
	-I$(top_srcdir)/../nhd2-exp/lib/libupnpclient \
	-I$(top_srcdir)/../nhd2-exp/lib/jsoncpp/include \
	@FREETYPE_CFLAGS@ 

noinst_LTLIBRARIES = youtube.la

youtube_la_SOURCES = ytparser.cpp youtube.cpp
	 
youtube_la_LDFLAGS = -rpath $(PLUGINDIR) -module
youtube_la_LIBADD = $(top_srcdir)/../nhd2-exp/lib/jsoncpp/libjsoncpp.a

youtube_la_CXXFLAGS = -fno-rtti -fno-exceptions

install-exec-local:
	install -d $(DESTDIR)$(PLUGINDIR)/youtube
	install .libs/youtube.so $(DESTDIR)$(PLUGINDIR)/youtube
	install -m 0644 youtube.cfg $(DESTDIR)$(PLUGINDIR)/youtube
	install -m 0644 youtube.png $(DESTDIR)$(PLUGINDIR)/youtube
	install -m 0644 youtube_small.png $(DESTDIR)$(PLUGINDIR)/youtube

uninstall-local:
	-rm $(DESTDIR)$(PLUGINDIR)/youtube/youtube.so
	-rm $(DESTDIR)$(PLUGINDIR)/youtube/youtube.cfg
	-rm $(DESTDIR)$(PLUGINDIR)/youtube/youtube.png
	-rmdir $(DESTDIR)$(PLUGINDIR)/youtube



